﻿<xsl:stylesheet version="1.0" xmlns:xsl = "http://www.w3.org/1999/XSL/Transform">
  <xsl:output encoding="UTF-8"/>
  <xsl:template match="/">
    <SummaryResult>
      <xsl:for-each select="Report/Doc/DName">
        <TestName>
          <xsl:value-of select="string(.)"/>
        </TestName>
      </xsl:for-each>
      <xsl:for-each select="Report/Doc/NodeArgs">
        <TestResult>
          <xsl:value-of select="string(@status)"/>
        </TestResult>
      </xsl:for-each>
      <InnerTests>
        <InnerTest>
          <xsl:for-each select="Report/Doc/DName">
            <TestName>
              <xsl:value-of select="string(.)"/>
            </TestName>
          </xsl:for-each>
          <xsl:for-each select="Report/Doc/NodeArgs">
            <TestResult>
              <xsl:value-of select="string(@status)"/>
            </TestResult>
          </xsl:for-each>
        </InnerTest>
      </InnerTests>
    </SummaryResult>
  </xsl:template>
</xsl:stylesheet>
